<script src="/js/cartoon.js" tppe="text/javascript"></script>
<table class="mlist"  cellpadding="0" width="50%" cellspacing="0" style="float: left">
	<thead align="center">
		<td nowrap>作者id</td>
		<td nowrap>作者名</td>
		<td nowrap>国家</td>
		<td nowrap>操作</td>
	</thead>
	<?if($this->ret['data']):?>
	<? foreach ($this->ret['data'] as $row):?>
	<tr align="left">
		<td nowrap ><span id="id_<?=$row['id']?>"><?= $row['id']?></span></td>
		<td nowrap><span id='title_<?=$row['id']?>'><?= $row['name']?></span></td>
		<td nowrap>
		<span id="nation_<?=$row['id']?>"><a href="<?=self::_makeURL($this->app,$this->controller,'author_list',array('nation'=> $row['nation']));?>" ><?=$row['nation']?></a></span>
		</td>
		<td nowrap align="left">
		<a href="javascript:void(0);" onclick="Cartoon.edit_cate(<?=$row['id']?>,2)">修改</a>
		<span class='delete-link' id='<?= $row['id']?>'>删除</span>
		</td>
	</tr>
	<? endforeach;?>
	<tr>
		<td colspan="4"  align="right"><?=$this->ret['pages']?></td>
	</tr>
	<?else:?>
	<td colspan="5">还没有添加作者</td>
	<?endif;?>
</table>
<div style="float:left; padding-left: 10px">
<table class="mlist"  cellpadding="0" width="45%" cellspacing="0" style="float: left">
	<thead align="center">
		<td nowrap colspan="2"><span id="_title" >添加作者</span></td>
	</thead>
	<tr align="left">
		<td nowrap>作者名：</td>
		<td nowrap>
		<input class="input_text"  type="text" name="author" id="author"  size="25" />
		<input type="hidden" value="0" name="authorid" id="authorid">
		</td>
	</tr>
	<tr align="left">
		<td nowrap>国家地区：</td>
		<td nowrap>
		<select name="nation" id="nation" style="padding-top:9px;width:110px">
			<option value="0" >---选择国家---</option>
			<option value="日本" >日本</option>
			<option value="美国" >美国</option>
			<option value="欧洲" >欧洲</option>
			<option value="港台" >港台</option>
			<option value="大陆" >大陆</option>
		</select>
		</td>
	</tr>
	<thead>
	<td colspan="2" align="center"><input type="button" id="btn_cate" onclick="Cartoon.addAuthor()" value="添加" /></td>
	</thead>
</table>
</div>
<script>
hookDeleteConfirm.hook = function(src){ return $H({_app: 'cartoon', _controller: 'index', _action: 'delCate', id: src.getAttribute('id')}).toQueryString();};
</script>
